package com.yx.shop.dao.admin;

import com.yx.shop.entitly.Type;

import java.util.List;

/**
 * @Classname TypeDao
 * @Description TODO:
 * @Date 2021/05/07 11:48
 * @Created by yx
 */
public interface AdminTypeDao {
    /**
     * @Author:yx
     * @return java.util.List<com.yx.shop.entitly.Type>
     * @Date 2021/05/10 19:13
     * @param
     * @Description:获取所有type
     **/
    List<Type> getAllType();

    /**
     * @Author:yx
     * @return java.lang.Integer
     * @Date 2021/05/10 19:12
     * @param type
     * @Description:新增type
     **/
    Integer insertType(Type type);

    /**
     * @Author:yx
     * @return java.lang.Integer
     * @Date 2021/05/10 21:22
     * @param tid
     * @Description:根据tid删除商品分类
     **/
    Integer deleteType(Integer tid);
}
